import request from '../utils/request.js'

export const loginService = (userData) => {
    return request.post('/users/login',userData);
}

export const registerService = (userData) => {
    return request.post('/users/register', userData);
}
export const sendVerificationCode = (data)=>{
    return request.post('/users/sendEmailCode',data);
}

export const resetPassword =(data)=>{
    return request.post('/users/resetPassword',data);
}


export const verifyResetCode = (data)=>{
    return request.post('/users/verifyResetCode',data);
}




export const getUserInformation = (data)=>{
    return request.post('/users/getUserInformation',data);
}

// 导出一个名为editUserInformation的函数
export const editUserInformation = (data)=>{
    return request.post('/users/editUserInformation',data);
}